package com.java.yz.day13.ketang;

import java.io.FileWriter;
import java.io.IOException;

//字符流的简化写法
    //字符输入流:Reader -- InputStreamReader -- FileReader
    // 字符输出流:Writer -- OutputStreamWriter -- FileWriter
public class FileWriteDemo1 {
    public static void main(String[] args) {
        //只是之前的写法
        //OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("src/com/java/yz/day13/ketang/d.txt",true),"GBK");

        //现在的简化写法
        try {
            FileWriter fw = new FileWriter("src/com/java/yz/day13/ketang/d.txt");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
